<? 
$output = exec('svn update /home/sniffles/www/iftask/trunk/');
/*
$payload = file_get_contents("php://input");
$json = json_decode($payload,true);

$data['ProjectName'] = $json['project_name'];
$data['RepositoryPath'] = $json['repository_path'];
$data['RevisionCount'] = $json['revision_count'];

$Count = count($json['revisions']);
$TotalResults = $Count - 1;

for($i=0;$i<=$Count;$i++) { 
	$data['Revision'] .= $json['revisions'][$i]['revision'];
	if($i < $TotalResults) { $data['Revision'] .= '|'; }
	$data['URL'] .= $json['revisions'][$i]['url'];
	if($i < $TotalResults) { $data['URL'] .= '|'; }
	$data['Author'] .= $json['revisions'][$i]['author'];
	if($i < $TotalResults) { $data['Author'] .= '|'; }
	$data['Message'] .= $json['revisions'][$i]['message'];
	if($i < $TotalResults) { $data['message'] .= '|'; }
	$data['RevisionDate'] = date("Y-m-d H:i:s", $json['revisions'][$i]['timestamp']);

}
include_once('../../../../connect.php');
$db = new connect;
foreach($data as $key => $value) {
		$data[$key] = $value;
}
$query = "INSERT INTO `history` (`".implode('`, `', array_keys($data))."`) VALUES ('".implode("', '", $data)."')";
$response = $db->query($query);
*/
?>